package top.laoliu.service;

import org.apache.ibatis.annotations.Param;
import top.laoliu.pojo.Position;
import top.laoliu.pojo.PositionVo;

import java.util.List;

/**
 * @Author: acer
 * @Date: 2020/10/13 16:58
 * @Description:
 */
public interface PositionService {
    List<PositionVo> getLimitedPositions(Integer index, Integer size);

    //获取热招职位，根据浏览量排序
    List<PositionVo> getLimitedPositionsByBrowsing(Integer index, Integer size);

    //根据position_id获取某个position的详细信息
    PositionVo getPositionById(Integer position_id);

    //获取指定数量的除了本职位的其他同行业职位，用于推荐职位
    List<PositionVo> getLimitedOtherPositions(String industry,Integer position_id,Integer index, Integer size);

    //模糊搜索获得搜索的职位信息列表,按时间排序
    List<PositionVo> getPositionsBySearchTime(String position, String workplace,String classification,Integer currentPage, Integer pageSize);

    //模糊搜索获得搜索的职位信息列表,按浏览量排序
    List<PositionVo> getPositionsBySearchBrowsing( String position,  String workplace, Integer currentPage, Integer pageSize);

    Integer getPositionTotalCountBySearch(String position,String workplace,String classification);

    int updatePosition(PositionVo position);

    List<String> getLimitedPositionName();

    List<PositionVo> getPositionByClassification(String classification);

    List<Position> getPositionsByCompany_id(Integer company_id);

    int insertPosition(Position position);
}
